Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psp-7099 prevent infinite refresh loop of acq files when user is not … #3548

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

devinleighsmith
Copy link
Collaborator

…authorized or file does not exist.

@devinleighsmith devinleighsmith added the bug Something isn't working label Oct 26, 2023
@devinleighsmith devinleighsmith self-assigned this Oct 26, 2023
@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #3548 (051aa33) into dev (ca1a118) will increase coverage by 11.30%.
The diff coverage is 64.70%.

Impacted file tree graph

@@             Coverage Diff             @@
##              dev    #3548       +/-   ##
===========================================
+ Coverage   63.05%   74.35%   +11.30%     
===========================================
  Files         471      899      +428     
  Lines       15040    18514     +3474     
  Branches     1019     5217     +4198     
===========================================
+ Hits         9483    13766     +4283     
+ Misses       5307     4748      -559     
+ Partials      250        0      -250     
Flag Coverage Δ
unittests 74.35% <64.70%> (+11.30%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...eatures/mapSideBar/acquisition/AcquisitionView.tsx 49.09% <100.00%> (ø)
...d/src/hooks/repositories/useAcquisitionProvider.ts 71.11% <ø> (ø)
...es/mapSideBar/acquisition/AcquisitionContainer.tsx 90.09% <75.00%> (ø)
source/frontend/src/utils/axiosUtils.ts 85.00% <54.54%> (ø)

... and 1366 files with indirect coverage changes

Comment on lines +165 to +170
{error && (
<b>
Failed to load Acquisition File. Check the detailed error in the top right for
more details.
</b>
)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please add unit tests to cover this new logic
image

@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

@devinleighsmith devinleighsmith merged commit a8da045 into bcgov:dev Oct 30, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants